//
//  IndexViewController.h
//  GuoBuGaForIphone
//
//  Created by zhangwo on 16/10/26.
//  Copyright © 2016年 GuoBuGa. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Common.h"
#import "HomeSearchView.h"
#import "ScrollViewSlider.h"
#import "HomeContentViewCell.h"
#import "ToolBarButton.h"
#import "HomeAddViewController.h"

//内容展示的collectionView
@interface IndexViewController : UIViewController <UITextFieldDelegate,ScrollViewSliderDelegate,UICollectionViewDelegate,UICollectionViewDataSource,AddTableViewCellDelegate>
{
    @private
    HomeSearchView *_searchView;
    ScrollViewSlider *_slideView;
    NSMutableArray *_deleteItems;
    NSDictionary *_addDic;
    
}

@property(nonatomic,readonly)UICollectionView *collectionView;
@property(nonatomic,readonly)UIToolbar *toolbar;
@property(nonatomic, strong)NSMutableArray *dataList;

//Cell 尺寸
@property(nonatomic, assign)CGSize cellSize;
//图标尺寸
@property(nonatomic, assign)CGSize imageSize;
//分类数据列表
@property(nonatomic, assign)BOOL isEditing;

- (void)addItem:(NSDictionary *)data;

@end
